from django.urls import path, re_path

from apps.areas import views

urlpatterns = [
    path('areas/', views.AreasView.as_view(), name="areas"),
    path('address/create/', views.AddressCreateView.as_view(), name="address_create"),
    re_path(r'address/(?P<add_id>\d+)/$', views.UpdateAddView.as_view(), name="address_update"),
    re_path(r'address/(?P<add_id>\d+)/title/$', views.TitleView.as_view(), name="address_title"),
    re_path(r'address/(?P<add_id>\d+)/default/$', views.DefaultView.as_view(), name="address_default"),

]
